package com.briup.day17;

/**
 * @author ThinkBook
 */
public class Test07_Week3 {
    public static void main(String[] args) {
        Week3 w1 = Week3.MON;
        w1.fun();

        Week3 w2 = Week3.TUE;
        w2.fun();

        Week3 w3 = Week3.WED;
        w3.fun();
    }
}
enum Week3{
    MON{
        @Override
        public void fun() {
            System.out.println("in MON fun()...");
        }
    },TUE(){
        @Override
        public void fun() {
            System.out.println("in TUE fun()...");
        }
    }, WED("星期三") {
        @Override
        public void fun() {
            System.out.println("in WED fun() ...");
        }
    };
    //抽象方法
    public abstract void fun();
    //构造方法
    private Week3(){

    }
    private Week3(String name){

    }
}
